import { FBXLoader } from "../../lib/loaders/FBXLoader.js";

const fbxLoadModel = function () {
  const loader = new FBXLoader();
  loader.load(
    this.modelPath,
    ({ object, objectTree }) => this.publicLoadCallback(object, loader.fileSize, objectTree),
    this.loadProgress.bind(this)
  );
};

export default fbxLoadModel;
